import re

import requests
from selenium import webdriver

from tools.Dingding import dingtalk_robot

html = '''
<font style="vertical-align: inherit;">&nbsp;或致 1800 247 711</font>
'''
reg_tel = re.compile(r'(Tel|Telefon|电话|联系|联系方式|专线|热线|致电)[：:]?[ ]?([ \d()+-.]{2,})', re.I | re.S)
Tel = [tel[1] if reg_tel.findall(html) else '' for tel in reg_tel.findall(html)]
Tel = Tel if len(Tel) > 1 else ''.join(Tel)
# result = reg_tel.findall(html)
# print(type(Tel))
# print(Tel)
try:
    print()
except Exception as e:
    dingtalk_robot(e.args[0], ['0000'], False)